-- To run: must have a mod flag and a server flag; see an admin if you lack one or both 
-- Type /run <scriptname>.lua server 
-- When you're done with some scripting (can do it anytime) and certainly before you leave, do: 
-- /forward /kill * 
-- This will toast any remnants of the script hanging out in memory. 

enableAlerts(0); 

if isServer() then 

local scripter = "Doran"; -- Insert scripter name here 
local planetName = "Kohia"; --Name of planet 
local factionID ="2"; -- 0=UGTO, 1=ICC, 2=K'Luth, 3=Mir 4=Pirates ?=Neutral -1?
local targetFleetID =""; --Use if a specific planet is supposed to be owned by a fleet (IE ICC:ICC, UGTO:GTN etc.). Put in the name of a target that has the fleet you wish to assign, leave blank if none needed. 

function revoltTarget() 
revoltPlanet( planetName, factionID); 
setOwner(planetName, getOwner(targetFleetID)); 
end 

revoltTarget(); 

end 
